package com.senter.data.dbflow.db;

import com.raizlabs.android.dbflow.annotation.Migration;
import com.raizlabs.android.dbflow.sql.SQLiteType;
import com.raizlabs.android.dbflow.sql.migration.AlterTableMigration;
import com.senter.data.dbflow.model.Person;

@Migration(version = DemoDataBase.VERSION, database = DemoDataBase.class)
public class PersonMigration extends AlterTableMigration<Person> {

    public PersonMigration(Class<Person> table) {
        super(table);
    }

    @Override
    public void onPreMigrate() {
        super.onPreMigrate();
        addColumn(SQLiteType.TEXT,"address");
        addColumn(SQLiteType.TEXT,"remark");
    }

    @Override
    public void onPostMigrate() {
        super.onPostMigrate();
    }

}
